Users status Class
Renders a user status area which displays logged in status and provides various user-related operations.
Constructor
Users status
(
-
[options]
Parameters:
-
[options]
Object optionalthis object contains function parameters
-
[icon]
String optionalIcon for the login button. Defaults to Qbix icon.
-
[label]
String optionalText for the login button. Defaults to 'log in'.
-
[fullName]
Boolean optionalIf set to true, then full name of the user will be displayed, otherwise only the first name.
-
[logoutIcon]
String optionalUrl to and Icon for 'Log out' item in the tool menu.
-
[menuItems]
Array optionalAdditional menu items besides 'Log out' which will be shown in the user menu. Should be an array of hashes like
{ 'contents': 'value', 'action': 'value' }
-
[onMenuSelect]
Function | String | Q.Event optionalFunction, string function name or Q.Event. Called when user selected some item from user selected some item from user menu except 'Log out'.
-